<?php

	$parm = requestArrayParm($_REQUEST);


	unset($query,$between);
	$between['start'] = strtotime(date('Y-m-d'));
	$between['end'] = strtotime(date('Y-m-d'))+86399;
	$jrzc = _SqlTool::getCount('users', $query, $between);
	
	unset($query,$between);
	$ljzc = _SqlTool::getCount('users', $query, $between);
	
	unset($query,$between);
	$between['start'] = strtotime(date('Y-m-d'));
	$between['end'] = strtotime(date('Y-m-d'))+86399;
	$query['status'] = '2';
	$query['status2'] = '2';
	$jrtz = _SqlTool::getDistinctCount('tzinfo',$query,'userid',$between);
	
	unset($query,$between);
	$query['status'] = '2';
	$query['status2'] = '2';
	$ljtz = _SqlTool::getDistinctCount('tzinfo',$query,'userid');
	
	unset($query,$between);
	$between['start'] = strtotime(date('Y-m-d'));
	$between['end'] = strtotime(date('Y-m-d'))+86399;
	$query['status'] = '2';
	$query['status2'] = '2';
	$jrtze = _SqlTool::getSum('tzinfo', $query, $between,'money');
	
	unset($query,$between);
	$query['status'] = '2';
	$query['status2'] = '2';
	$ljtze = _SqlTool::getSum('tzinfo', $query, $between,'money');
	
	unset($query,$between);
	$between['start'] = strtotime(date('Y-m-d'));
	$between['end'] = strtotime(date('Y-m-d'))+86399;
	//$query['status'] = '1';
	$jrtxe = _SqlTool::getSum('txinfo', $query, $between,'money');
	
	unset($wheres);
	$wheres['addtime'] = array('<=',time());
	$cdzje = _SqlTool::getSum('jyinfo', $wheres,array(),'money');
	
	
	include renderTemplate('welcome');